<!DOCTYPE html>
<html lang="en">

<head>
    <meta charset="UTF-8">
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <title>登录页面</title>
    <link href="https://cdn.jsdelivr.net/npm/bootstrap@5.3.2/dist/css/bootstrap.min.css" rel="stylesheet">
    <style>
        body {
            background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
            display: flex;
            justify-content: center;
            align-items: center;
            height: 100vh;
            margin: 0 auto;
            overflow: hidden;
        }

        .bg-animation {
            position: absolute;
            top: 0;
            left: 0;
            width: 100%;
            height: 100%;
            z-index: -1;
        }

        .bg-animation span {
            position: absolute;
            width: 60px;
            height: 60px;
            background: rgba(255, 255, 255, 0.1);
            border-radius: 50%;
            animation: animate 10s linear infinite;
        }

        @keyframes animate {
            0% {
                transform: translateY(100vh) scale(0);
            }
            100% {
                transform: translateY(-10vh) scale(1);
            }
        }

        .login-container {
            background-color: rgba(255, 255, 255, 0.9);
            padding: 40px;
            border-radius: 20px;
            box-shadow: 0 0 20px rgba(0, 0, 0, 0.2);
            width: 450px;
            backdrop-filter: blur(10px);
            animation: fadeIn 0.5s ease-out;
        }

        @keyframes fadeIn {
            from {
                opacity: 0;
                transform: translateY(-20px);
            }
            to {
                opacity: 1;
                transform: translateY(0);
            }
        }

        .login-container h2 {
            text-align: center;
            margin-bottom: 30px;
            color: #333;
        }

        .form-control {
            border: none;
            border-bottom: 2px solid #ccc;
            border-radius: 0;
            padding: 10px 0;
            margin-bottom: 20px;
            background-color: transparent;
            transition: border-color 0.3s;
        }

        .form-control:focus {
            box-shadow: none;
            border-color: #667eea;
        }

        .btn-primary {
            background-color: #667eea;
            border: none;
            border-radius: 30px;
            padding: 12px;
            font-size: 16px;
            transition: background-color 0.3s;
        }

        .btn-primary:hover {
            background-color: #764ba2;
        }

        .mt-3 a {
            color: #667eea;
            transition: color 0.3s;
        }

        .mt-3 a:hover {
            color: #764ba2;
        }
    </style>
</head>

<body>
<div class="bg-animation">
    <span style="top: 10%; left: 10%; animation-delay: 0s;"></span>
    <span style="top: 20%; left: 30%; animation-delay: 1s;"></span>
    <span style="top: 30%; left: 50%; animation-delay: 2s;"></span>
    <span style="top: 40%; left: 70%; animation-delay: 3s;"></span>
    <span style="top: 50%; left: 90%; animation-delay: 4s;"></span>
    <span style="top: 60%; left: 10%; animation-delay: 5s;"></span>
    <span style="top: 70%; left: 30%; animation-delay: 6s;"></span>
    <span style="top: 80%; left: 50%; animation-delay: 7s;"></span>
    <span style="top: 90%; left: 70%; animation-delay: 8s;"></span>
    <span style="top: 10%; left: 90%; animation-delay: 9s;"></span>
</div>
<div class="login-container">
    <h2>用户登录</h2>
    <form action="/login" method="post">
        <div class="mb-3">
            <label for="username" class="form-label">用户名</label>
            <input type="text" class="form-control" id="username" placeholder="请输入用户名" name="username">
        </div>
        <div class="mb-3">
            <label for="password" class="form-label">密码</label>
            <input type="password" class="form-control" id="password" placeholder="请输入密码" name="password">
        </div>
        <div style="width: 100px;height: 30px">
            <span th:text="${msg}" style="color: red"></span>
        </div>
        <button type="submit" class="btn btn-primary w-100">登录</button>
    </form>
    <div class="mt-3 text-center">
        <a href="#">忘记密码?</a>
        <span class="mx-2">|</span>
        <a href="#">注册新账号</a>
    </div>
</div>
<script src="https://cdn.jsdelivr.net/npm/bootstrap@5.3.2/dist/js/bootstrap.bundle.min.js"></script>
</body>

</html>